package com.example.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class HelloCtrl {
        @ResponseBody
        @RequestMapping("/Hello")
        public String Hello() {
            return "Hello world!";
        }

        @GetMapping("/first")
        public String toFist(){
            //return "../templates/test.html";
            return "first";
        }
        @GetMapping("bb")
        public String goAa(){
        return "admin/bb";
    }
}

